import {request} from './index';

export const getUsers = (resove,reject) => {
    request.get({
        url: '/users',
        success: resove,
        error: reject
    })
}

export const findOnlineUsersByName = (name,resove,reject) => {
    request.get({
        url: '/users/'+name,
        success: resove,
        error: reject
    })
}